- if session[:user_id]
%p= link_to('My Products', :controller => 'products', :action => 'list')
%p= link_to('Logout', :controller => 'public', :action => 'logout')
- else
= start_form_tag(:action => 'send_login')
= error_messages_for 'user'
= render :partial => 'users/form'
= submit_tag("Log in")
= end_form_tag
%p= link_to('Register', :controller => 'public', :action => 'register')
- end
